package com.seek.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.seek.dao.InterLogDao;
import com.seek.model.entity.TInterLog;


/**
 * 接口日志线程
 * 
 * <ul>
 * <li>
 * <b>修改历史：</b><br/>
 * <p>
 * [2016-3-23下午4:52:14]涂小炼<br/>
 * 新建
 * </p>
 * </li>
 * </ul>
 */
public class InterLogThread implements Runnable {
	private Logger logger = LoggerFactory.getLogger(this.getClass());	// 日志
	private InterLogDao interLogDao;
	private TInterLog interLog;


	/**
	 * 
	 * 创建一个新的实例InterLogThread.
	 *
	 * @param interLogDao
	 * @param interLog
	 */
	public InterLogThread(InterLogDao interLogDao,TInterLog interLog) {
		super();
		this.interLogDao = interLogDao;
		this.interLog = interLog;
	}

	@Override
	public void run() {
		try {
			interLogDao.insert(interLog);
		} catch (Exception e) {
			logger.error(e.getMessage(), e);
		}
	}

}
